home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / graphic.zip / PLOTXY.C < prev    next >
Text File  |  1991-12-24  |  1KB  |  27 lines

  1. /**********************************************************************
  2. PLOTXY
  3. Description - plotxy(x coordinate, y coordinate)
  4. **********************************************************************
  5. Function - plots a character at a given coordinate
  6. Input - integer plot routine
  7. Output - just to the screen
  8. #includes - none
  9. #defines  - none
  10. Routines Called - needs desmet c functions scr_rowcol and scr_co
  11. Notes - does error check--change as screen size changes; specify char
  12.   to print
  13. **********************************************************************/
  14.  
  15. plotxy(x,y)
  16. int x,y;
  17. {
  18.   if(x<80 && x>-1 && y<24 && y>-1);  /* catch screen plot error */
  19.     {
  20.      scr_rowcol(y,x); /* desmet pc instruction - position cursor */
  21.      scr_co('.');  /* desmet pc instruction - print on screen */
  22.     }
  23.   return;
  24. }
  25.  
  26. /******************** end of function ********************************/
  27.